package com.app.ribbon.handler;

import com.app.ribbon.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/11/7 19:09
 */
@RestController
public class RibbonHandler {
    @Autowired
    private RibbonService ribbonService;

    @GetMapping("/hi")
    public String hi(@RequestParam String name){

        return ribbonService.hiService(name);
    }

    @GetMapping("/feign")
    public String ribbon(){
        return "feign page";
    }

}
